package com.example.jucdemo.waitnotify.dmeo2;


/**
 * @Author by KoVaVo
 * @Date 2023-05-20 19:23
 * @Desc: 生产者的线程
 */
public class code04_ThreadA extends Thread {

    private code02_Producer producer;

    public code04_ThreadA(code02_Producer producer){
        super();
        this.producer = producer;
    }

    @Override
    public void run() {
        while (true){
            producer.setValue();
        }
    }
}
